package com.jiuqi.common.authority.netrep.origin;

import java.util.*;

public interface OURMGR {
  public String addOrganization(OrganizationInfo oi) throws AuthorityException ;
  public boolean editOrganization(OrganizationInfo oi) throws AuthorityException ;
  public boolean delOrganization(String org_guid, boolean mindChildren) throws AuthorityException ;
  public OrganizationInfo queryOrganization(String org_guid) throws AuthorityException ;
  public ArrayList getAllOrganizations() throws AuthorityException ;
  public ArrayList queryAllOrganizationsRecord() throws AuthorityException ;
  public ArrayList getRootOrganizations() throws AuthorityException ;
  public ArrayList getChildOrganizations(String parent) throws AuthorityException ;
  public String findOrganization(String org_name) throws AuthorityException ;
  public boolean exchangeOrganizationOrder(String guid1, String guid2) throws AuthorityException ;
  public String addUser(UserInfo ui) throws AuthorityException ;
  public boolean editUser(UserInfo ui) throws AuthorityException ;
  public boolean delUser(String usr_guid) throws AuthorityException ;
  public UserInfo queryUser(String usr_guid) throws AuthorityException ;
  public ArrayList queryAllUsersRecord() throws AuthorityException;
  public ArrayList getAllUsers() throws AuthorityException ;
  public String findUser(String usr_name) throws AuthorityException ;
  public boolean exchangeUserOrder(String guid1, String guid2) throws AuthorityException ;
  public boolean changePassword(String operator, String usr_guid, String oldpw, String newpw) throws AuthorityException ;
  public String checkLogin(String usr_name, String usr_pw) throws AuthorityException ;
  public String checkLoginEx(String usr_name, String usr_pw, String bindIPs) throws AuthorityException ;
  public String addRole(RoleInfo ri) throws AuthorityException ;
  public String addRoleWithOrg(RoleInfo ri) throws AuthorityException ;
  public boolean editRole(RoleInfo ri) throws AuthorityException ;
  public boolean delRole(String rl_guid) throws AuthorityException ;
  public RoleInfo queryRole(String rl_guid) throws AuthorityException ;
  public ArrayList getAllRoles() throws AuthorityException ;
  public ArrayList queryAllRolesRecord() throws AuthorityException ;
   public ArrayList getRoleByOrg(String orgGUid) throws AuthorityException ;
  public String findRole(String rl_name) throws AuthorityException ;
  public String findRole(String rl_name,String orgGuid) throws AuthorityException ;
  public boolean exchangeRoleOrder(String guid1, String guid2) throws AuthorityException ;
  public boolean addLink(String linkto, String user, boolean isorg) throws AuthorityException ;
  public boolean delLink(String linkto, String user) throws AuthorityException ;
  public boolean delLinkByUser(String user,String isOrg) throws AuthorityException;
  public boolean existLink(String linkto, String user) throws AuthorityException ;
  public boolean exchangeLinkOrder(String parent, String guid1, String guid2) throws AuthorityException ;
  public ArrayList getLinkUsers(String linkto) throws AuthorityException ;
  public ArrayList queryLinkUsersRecord(String linkto) throws AuthorityException ;
  public ArrayList queryLinkRolesRecord(String linkto) throws AuthorityException ;
  public ArrayList queryLinkOrganizationsRecord(String user_guid) throws AuthorityException;
  public ArrayList getUserOwners(String user) throws AuthorityException ;
  public ArrayList getUserOwners(String user, boolean isorg) throws AuthorityException ;
  public void deleteRelations(String guid) throws AuthorityException ;
}